/*
 * Thread.hpp
 *
 *  Created on: Nov 15, 2014
 *      Author: toti
 */

#ifndef THREAD_HPP_
#define THREAD_HPP_

#include <iostream>

#include <pthread.h>


class Thread{

private:

	pthread_t pThread;

	static void *startThread(void* object);

public:

	Thread();
	virtual ~Thread();


	virtual void run() = 0;

	void join();

};


#endif /* THREAD_HPP_ */
